//
//  DYOtherProxy.m
//  DYEnergy
//
//  Created by  smarthome on 16/7/27.
//  Copyright © 2016年 firstcare. All rights reserved.
//

#import "DYOtherProxy.h"

#import "DYAPI.h"
#import "DYNetworkDelegate.h"

@implementation DYOtherProxy

+ (void)feedbackSuccess:(NSDictionary *)para
                success:(void (^)(NSURLSessionDataTask *task, id responseObject,id target))success
                dataerr:(void (^)(NSURLSessionDataTask *task, id responseObject,XXError *error))dataerr
                failure:(void (^)(NSURLSessionDataTask *task, NSError *error))failure {
    
    DYNetworkDelegate *delegate = [[DYNetworkDelegate alloc]init];
    
//    [delegate autoToAnyList:self keyPath:@"data.homeList"];
    
    [[DYAPI shared] doTaskUrlInfo:[DYURLSet shared].feedback parameters:para netdelegate:delegate success:success dataerr:dataerr failure:failure];
}

+(void)getRCloudSuccess:(NSDictionary *)para
                success:(void (^)(NSURLSessionDataTask *task, id responseObject,id target))success
                dataerr:(void (^)(NSURLSessionDataTask *task, id responseObject,XXError *error))dataerr
                failure:(void (^)(NSURLSessionDataTask *task, NSError *error))failure {
    
    DYNetworkDelegate *delegate = [[DYNetworkDelegate alloc]init];
    
    //    [delegate autoToAnyList:self keyPath:@"data.homeList"];
    
    [[DYAPI shared] doTaskUrlInfo:[DYURLSet shared].getRCloud parameters:para netdelegate:delegate success:success dataerr:dataerr failure:failure];
}

@end
